home *** CD-ROM | disk | FTP | other *** search
- on placeqt
- global status, selectedvideonum, qtstatus
- if status <> EMPTY then
- exit
- end if
- set qtstatus to "QTon"
- puppetSprite(15, 0)
- updateStage()
- zoomBox(clickOn(), 15, 1)
- set selectedvideonum to "QT" & the name of cast the castNum of sprite clickOn()
- puppetSprite(15, 1)
- set the type of sprite 15 to 16
- set the ink of sprite 15 to 0
- set the foreColor of sprite 15 to 255
- set the backColor of sprite 15 to 0
- set the castNum of sprite 15 to the number of member selectedvideonum
- set the locH of sprite 15 to 418
- set the locV of sprite 15 to 357
- updateStage()
- onairdisp(0)
- end
-
- on onairdisp which
- global selectedvideonum, onairnum
- puppetSprite(12, 1)
- set the type of sprite 12 to 1
- set the ink of sprite 12 to 0
- set the foreColor of sprite 12 to 255
- set the backColor of sprite 12 to 0
- set the castNum of sprite 12 to the number of member "onAir"
- set onairnum to value(item 2 of selectedvideonum)
- if onairnum > 3 then
- set n to onairnum - 3
- else
- set n to onairnum
- end if
- if onairnum = 0 then
- exit
- end if
- if which = 0 then
- set the locH of sprite 12 to 283 + ((n - 1) * 120)
- set the locV of sprite 12 to 235
- updateStage()
- exit
- else
- if which = 1 then
- if onairnum >= 4 then
- puppetSprite(12, 0)
- updateStage()
- exit
- else
- set the locH of sprite 12 to 283 + ((n - 1) * 120)
- set the locV of sprite 12 to 235
- updateStage()
- exit
- end if
- else
- if which = 2 then
- if onairnum <= 3 then
- puppetSprite(12, 0)
- updateStage()
- exit
- else
- set the locH of sprite 12 to 283 + ((n - 1) * 120)
- set the locV of sprite 12 to 235
- updateStage()
- exit
- end if
- end if
- end if
- end if
- end
-
- on closeqt
- global selectedvideonum, qtstatus
- set qtstatus to "QToff"
- if selectedvideonum = 0 then
- exit
- end if
- puppetSprite(15, 1)
- updateStage()
- set the type of sprite 15 to 1
- set the ink of sprite 15 to 0
- set the foreColor of sprite 15 to 255
- set the backColor of sprite 15 to 0
- set the castNum of sprite 15 to the number of member "QTmask"
- set the locH of sprite 15 to 418
- set the locV of sprite 15 to 357
- updateStage()
- puppetSprite(12, 0)
- updateStage()
- end
-
- on stopqt
- global selectedvideonum, videotime, qtstatus
- if (selectedvideonum = 0) or (qtstatus = "QToff") then
- exit
- end if
- puppetSprite(15, 1)
- updateStage()
- set the movieRate of sprite 15 to 0
- set videotime to the movieTime of sprite 15
- updateStage()
- set the type of sprite 15 to 0
- updateStage()
- end
-
- on playqt
- global selectedvideonum, videotime, qtstatus
- if (selectedvideonum = 0) or (qtstatus = "QToff") then
- exit
- end if
- set n to char 3 to 4 of item 1 of selectedvideonum
- go(n)
- recoveryqt()
- end
-
- on recoveryqt
- global selectedvideonum, videotime
- puppetSprite(15, 1)
- set the type of sprite 15 to 16
- updateStage()
- set the movieTime of sprite 15 to videotime
- updateStage()
- end
-